package com.example.flshtarvel.entity;

import com.example.flshtarvel.vo.RouteVo;

import java.util.List;

public class Article {
    private String mesTypeId;          //信息类型id
    private String articleTypeId;      //文章类型id
    private String articleTypeName;    //文章类型名称
    private String articleId;          //文章id
    private String articleName;        //文章名称
    private String introduction;       //文章介绍
    private String traffic;            //交通
    private String phone;              //电话
    private String address;            //地址
    private String tips;               //景点贴士
    private String money;              //人均消费，最低消费
    private String open;               //开放时间
    private String netFacility;        //网络设施(客房免费wifi：roomWifi，房内高速上网：fastNet，公共区免费wifi：publicWifi)
    private String traficFacility;     //交通设施（免费停车场：freePark）
    private String traficService;      //交通服务（接机服务：pickUp，接站服务：Receiving，代客泊车：parking，叫车服务：callCar）
    private String receptionService;   //前台服务（行李寄存：deposit，24小时前台：allDayService，叫醒服务：awaken，邮政服务：postal，信用卡服务：creditCard，旅游票务：tour）
    private String foodService;        //餐饮服务（中餐厅：chineseRes，送餐服务：delivery）
    private String liveTime;           //入住时间
    private String leaveTime;          //离店时间
    private String chirdren;           //儿童政策
    private String breakfast;          //早餐信息
    private String pet;                //宠物政策
    private String imageUrls;          //文章图片路径
    private List<Image> imageList;     //图片
    private int likeCount;             //点赞数

    public int getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(int likeCount) {
        this.likeCount = likeCount;
    }

    public String getMesTypeId() {
        return mesTypeId;
    }

    public void setMesTypeId(String mesTypeId) {
        this.mesTypeId = mesTypeId;
    }

    public String getIntroduction() {
        return introduction;
    }

    public String getTraffic() {
        return traffic;
    }

    public String getPhone() {
        return phone;
    }

    public String getAddress() {
        return address;
    }

    public String getTips() {
        return tips;
    }

    public String getMoney() {
        return money;
    }

    public String getOpen() {
        return open;
    }

    public String getNetFacility() {
        return netFacility;
    }

    public String getTraficFacility() {
        return traficFacility;
    }

    public String getTraficService() {
        return traficService;
    }

    public String getReceptionService() {
        return receptionService;
    }

    public String getFoodService() {
        return foodService;
    }



    public String getChirdren() {
        return chirdren;
    }

    public String getBreakfast() {
        return breakfast;
    }

    public String getPet() {
        return pet;
    }

    public void setArticleTypeId(String articleTypeId) {
        this.articleTypeId = articleTypeId;
    }

    public void setArticleTypeName(String articleTypeName) {
        this.articleTypeName = articleTypeName;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    public void setArticleName(String articleName) {
        this.articleName = articleName;
    }

    public String getArticleTypeId() {
        return articleTypeId;
    }

    public String getArticleTypeName() {
        return articleTypeName;
    }

    public String getArticleId() {
        return articleId;
    }

    public String getArticleName() {
        return articleName;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public void setTraffic(String traffic) {
        this.traffic = traffic;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public void setOpen(String open) {
        this.open = open;
    }

    public void setNetFacility(String netFacility) {
        this.netFacility = netFacility;
    }

    public void setTraficFacility(String traficFacility) {
        this.traficFacility = traficFacility;
    }

    public void setTraficService(String traficService) {
        this.traficService = traficService;
    }

    public void setReceptionService(String receptionService) {
        this.receptionService = receptionService;
    }

    public void setFoodService(String foodService) {
        this.foodService = foodService;
    }

    public String getLiveTime() {
        return liveTime;
    }

    public String getLeaveTime() {
        return leaveTime;
    }

    public void setLiveTime(String liveTime) {
        this.liveTime = liveTime;
    }

    public void setLeaveTime(String leaveTime) {
        this.leaveTime = leaveTime;
    }

    public void setChirdren(String chirdren) {
        this.chirdren = chirdren;
    }

    public void setBreakfast(String breakfast) {
        this.breakfast = breakfast;
    }

    public void setPet(String pet) {
        this.pet = pet;
    }

    public String getImageUrls() {
        return imageUrls;
    }

    public void setImageUrls(String imageUrls) {
        this.imageUrls = imageUrls;
    }

    public List<Image> getImageList() {
        return imageList;
    }

    public void setImageList(List<Image> imageList) {
        this.imageList = imageList;
    }
    //重写equals方法
    @Override
    public boolean equals(Object obj){
        if (this == obj){
            return true;
        }
        if (obj == null){
            return false;
        }
        if (getClass() != obj.getClass()){
            return false;
        }
        Article article = (Article) obj;
        if (articleId.compareTo(article.getArticleId())==0){
            return true;
        }else{
            return false;
        }
    }





}
